// Privacy Model
import { Model } from "@vuex-orm/core";
import File from "./File";
export default class Privacy extends Model {
  // This is the name used as module name of the Vuex Store.
  static entity = "privacies";

  static primaryKey = "id";

  // List of all fields (schema) of the post model. `this.attr` is used
  // for the generic field type. The argument is the default value.
  static fields() {
    return {
      id: this.attr(null),
      name: this.string(""),
      birthday: this.string(""),
      avator: this.hasOne(File, "privacy_id"),
      backgournd: this.hasOne(File, "privacy_id"),
      location: this.string(""),
      positoin: this.string(""),
      user_id: this.attr("")
    };
  }
}
